package com.sky.controller.users;


import com.sky.result.Result;
import com.sky.service.TagsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author majun
 * @package com.sky.controller.users
 * @date 2025/6/21 21:08
 */
@RestController
@RequestMapping("/user/TagsController")
@Slf4j
public class UserTagsController {

    @Autowired
    private TagsService tagsService;

    /**
     * 获取前7个标签
     *
     * @return 标签名称
     */
    @GetMapping("/getScriptTagNames")
    public Result<List<String>> getScriptTagNames() {
        return Result.success(tagsService.getScriptTagNames());
    }

}
